#ifndef _OBJECT_H_
#define _OBJECT_H_

#include <d3dx9.h>

struct MYVERTEX
{
	D3DXVECTOR3 Position;
	DWORD		Color;
	D3DXVECTOR2	uv;
};

struct MYINDEX
{
	unsigned short _0, _1, _2;
};

#define MYFVF ( D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1 )



class Object
{
public:

	Object();
	virtual ~Object();

	void SetMapPos( int Type, int x, int y);
	void SetObjectPos( D3DXVECTOR3 Pos );
	void SetRender( bool Draw );
	void SetBombIndex( int Index );


	int GetMapPosX() { return m_ix; }
	int GetMapPosY() { return m_iy; }
	int GetBombIndex() { return m_iBombIndex; }
	int GetMapType() { return m_iType; }
	
	D3DXVECTOR3 &GetFixPos() { return m_vFixPos; }
	D3DXVECTOR3 &GetObjectPos() { return m_vPos; }


protected:

	int m_ix;
	int m_iy;
	int m_iType;
	bool m_bRender;

	D3DXVECTOR3 m_vPos;
	D3DXVECTOR3 m_vFixPos;
	bool m_bFlag;
	int m_iBombIndex;


	IDirect3DDevice9		*m_pkDevice;
	IDirect3DVertexBuffer9	*m_pkVB;
	IDirect3DIndexBuffer9	*m_pkIB;
	IDirect3DTexture9		*m_pkTexture;

};



#endif